<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="templates/loginLayout.xhtml">
    <ui:param name="img_param" value="smal_logo.png"/>
    <ui:define name="conteudo">
        <h:form prependId="false" id="loginform">
            <h:panelGrid columns="3" headerClass="headerLogin">
                <f:facet name="header">
                    <h:outputText value="#{msg.headerLogin}"/>
                </f:facet>
                <h:outputLabel value="#{msg.login}:" id="login-box-name" 
                               for="login-box-field"
                               styleClass="login-box-name"/>
                <h:inputText value="#{loginController.nome}" id="login-box-field" 
                             styleClass="form-login" size="30"
                             required="true"/>
                <p:message for="login-box-field" display="icon"/>

                <h:outputLabel value="#{msg.senha}:" id="login-box-pass" 
                               styleClass="login-box-name"
                               for="login-box-inpass"/>
                <h:inputSecret value="#{loginController.senha}" id="login-box-inpass" 
                               styleClass="form-login" size="30"
                               required="true"/>
                <p:message for="login-box-inpass" display="icon"/>

                <h:outputText value=""/>
                <p:commandLink action="#{loginController.logar()}" update="loginform"
                               id="comandLogin">
                    <h:graphicImage name="login-btn.png" library="images" width="103" height="42" 
                                    style="margin-left:90px; margin-top: 5px;"/>
                </p:commandLink>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>